package rest.jbpm.svg;

/**
 * Created by IntelliJ IDEA.
 * User: xEviL
 * Date: 26.10.11
 * Time: 15:06
 * To change this template use File | Settings | File Templates.
 */
class JbpmEndErrorElement extends JbpmCircleElement{
    public JbpmEndErrorElement(String _name, Integer _x, Integer _y, Integer _w, Integer _h){
        super(_name,_x,_y,_w,_h);
    }
    public String draw(){

        double k = (double)r / 20.0;
        return super.draw()+"<g transform=\"translate("+getElCenterX()+", "+getElCenterY()+")\">\n" +
                "<polygon points=\""+(-10*k)+","+(10*k)+" "+(-5*k)+","+(-10*k)+" "+(5*k)+","+(-1*k)+" "+(10*k)+","+(-10*k)+" "+(5*k)+","+(10*k)+" "+(-5*k)+","+(1*k)+"\" style=\"fill:purple;stroke:purple;stroke-width:2;\" />\n" +
                "</g>";


        /*
       "  style=\"fill:red;stroke:black;stroke-width:2;fill-opacity:1;\n" +
       "  stroke-opacity:0\"/>\n";*/
    }
}
